﻿using System;
using System.Collections.Generic;
using Wamm.ApplicationExceptions;
using Wamm.Model.Abstract;

namespace Wamm.Model.Entities {
    public class Family : IEntity {
        public int Id { get; set; }

        public virtual ICollection<Person> Members { get; set; }

        public virtual ICollection<FamilyPhoto> Photos { get; set; }

        public string AddedBy { get; set; }

        public DateTime Added { get; set; }

        public string LastUpdatedBy { get; set; }

        public DateTime LastUpdated { get; set; }

        public void Validate(IList<RuleViolation> errors) {
            //todo - add call to ValidateFamily
        }
    }
}
